/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.jebert.javamessage.control;

import javax.swing.DefaultListModel;
import org.jebert.javamessage.model.Contact;

/**
 *
 * @author jebert
 */
public class ContactMonitor extends Thread{
    private DefaultListModel contacts;
    private Contact cnt; 
    public ContactMonitor (DefaultListModel dlm){
    this.contacts = dlm;
    
    }
    
    public void addContact(){}
    public void removeContact(){}
    public void atualizeContact(int i){
    Contact cnt = (Contact) contacts.getElementAt(i);
    cnt.setIdleTime(System.currentTimeMillis());
    }
    public void atualizeContactsList(){
    for (int i = 1; i<contacts.getSize(); i++){

    
    }
    
    }
    public void run(){}
    
}
